package com.business.system.bean;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 14:34
 * @description:
 */
@Table(name = "WX_USER")
public class WxUserBean extends ModelBean {


    public static String LOGIN_USER = "loginUser";
	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "SUBSCRIBE", type = Type.数字整型, description = "是否已经关注", size = 1)
	private int subscribe;

	@Column(name = "OPEN_ID", type = Type.变长文本, description = "openid", size = 50)
	private String openId;

	@Column(name = "NICKNAME", type = Type.变长文本, description = "昵称", size = 50)
	private String nickname;

	@Column(name = "SEX", type = Type.数字整型, description = "年龄", size = 50)
	private int sex;

	@Column(name = "LANGUAGE", type = Type.变长文本, description = "语言", size = 50)
	private String language;

	@Column(name = "CITY", type = Type.变长文本, description = "城市", size = 50)
	private String city;

	@Column(name = "PROVINCE", type = Type.变长文本, description = "省份", size = 50)
	private String province;

	@Column(name = "COUNTRY", type = Type.变长文本, description = "国家", size = 50)
	private String country;

	@Column(name = "HEADIMG_URL", type = Type.变长文本, description = "头像", size = 200)
	private String headimgUrl;

	@Column(name = "SUBSCRIBE_TIME", type = Type.日期时间, description = "关注时间")
	private transient Date subscribeTime;

	@Column(name = "UNION_ID", type = Type.变长文本, description = "唯一编号", size = 50)
	private String unionId;

	@Column(name = "REMARK", type = Type.变长文本, description = "标注", size = 50)
	private String remark;

	@Column(name = "GROUP_ID", type = Type.数字整型, description = "分组编号", size = 11)
	private int groupId;

	@Column(name = "TAGIDS", type = Type.变长文本, description = "编号", size = 50)
	private String tagIds;

	@Column(name = "PRIVILEGES", type = Type.变长文本, description = "编号", size = 50)
	private String privileges;

    @Column(name = "LOGIN_NAME", type = Type.变长文本, description = "登录名", size = 50)
    private String loginName;

    @Column(name = "PASSWORD", type = Type.变长文本, description = "密码", size = 50)
    private String password;

    @Column(name = "TOKEN", type = Type.变长文本, description = "token", size = 50)
    private String token;

	@Column(name = "USER_NAME", type = Type.变长文本, description = "姓名", size = 50)
	private String userName;

	@Column(name = "MOBILE", type = Type.变长文本, description = "手机号", size = 50)
	private String mobile;

    @Column(name = "BIRTHDAY", type = Type.日期时间, description = "生日")
	private Date birthday;

	@Column(name = "RECOMMEND_NUMBER", type = Type.变长文本, description = "推荐编号", size = 50)
	private String recommendNumber;

	@Column(name = "FROM_ID", type = Type.变长文本, description = "推荐人", size = 50)
	private String fromId;

	@Column(name = "ROLE", type = Type.变长文本, description = "1-普通微信用户  2-代理商 3-加盟商 4-代理+加盟 5-仓库管理员", size = 50)
	private String role;

	@Column(name = "QRCODE", type = Type.变长文本, description = "推荐编码地址", size = 50)
	private String qrcode;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(int subscribe) {
		this.subscribe = subscribe;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadimgUrl() {
		return headimgUrl;
	}

	public void setHeadimgUrl(String headimgUrl) {
		this.headimgUrl = headimgUrl;
	}

	public Date getSubscribeTime() {
		return subscribeTime;
	}

	public void setSubscribeTime(Date subscribeTime) {
		this.subscribeTime = subscribeTime;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getTagIds() {
		return tagIds;
	}

	public void setTagIds(String tagIds) {
		this.tagIds = tagIds;
	}

	public String getPrivileges() {
		return privileges;
	}

	public void setPrivileges(String privileges) {
		this.privileges = privileges;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getRecommendNumber() {
		return recommendNumber;
	}

	public void setRecommendNumber(String recommendNumber) {
		this.recommendNumber = recommendNumber;
	}

	public String getFromId() {
		return fromId;
	}

	public void setFromId(String fromId) {
		this.fromId = fromId;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}